class MyMissionDetailModel {
  int? errcode;
  String? errmsg;
  Data? data;
  String? message;

  MyMissionDetailModel({this.errcode, this.errmsg, this.data, this.message});

  MyMissionDetailModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = this.message;
    return data;
  }
}

class Data {
  int? id;
  String? name;
  String? description;
  String? managerName;
  List<String>? tagName;
  String? dateStart;
  String? dateEnd;
  String? state;
  int? taskNums;
  int? progress;
  bool? isFocus;
  int? comments;

  Data(
      {this.id,
        this.name,
        this.description,
        this.managerName,
        this.tagName,
        this.dateStart,
        this.dateEnd,
        this.state,
        this.taskNums,
        this.progress,
        this.isFocus,
        this.comments});

  Data.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    description = json['description'];
    managerName = json['manager_name'];
    tagName = json['tag_name'].cast<String>();
    dateStart = json['date_start'];
    dateEnd = json['date_end'];
    state = json['state'];
    taskNums = json['task_nums'];
    progress = json['progress'];
    isFocus = json['is_focus'];
    comments = json['comments'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['description'] = this.description;
    data['manager_name'] = this.managerName;
    data['tag_name'] = this.tagName;
    data['date_start'] = this.dateStart;
    data['date_end'] = this.dateEnd;
    data['state'] = this.state;
    data['task_nums'] = this.taskNums;
    data['progress'] = this.progress;
    data['is_focus'] = this.isFocus;
    data['comments'] = this.comments;
    return data;
  }
}
